package com.nmsl.registration.controller;

import com.nmsl.registration.domain.skxEmployee;
import com.nmsl.registration.service.impl.skxEmployeeServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/employee")
public class skxEmployeeController {

    @Autowired
    private skxEmployeeServiceImpl skxemployeeServiceImpl;

    @RequestMapping("/getEmployeeCountByDepartmentId")
    public List<skxEmployee> getEmployeeCountByDepartmentId(@RequestParam("departmentId") Long departmentId) {
        return skxemployeeServiceImpl.getEmployeeCountByDepartmentId(departmentId);
    }

}
